var tableIns;//表格实例
layui.use(['laydate', 'form', 'table'], function() {
	var form = layui.form;
	io.get("/ep/data/comm_query_industry_list_l3", function(res) {
		let map = new Map();
		for (let v of res.data) {
			map.set(v.label, v.value);
		}
		map2Select(map, 'industry');
		form.render();
	});
	var laydate = layui.laydate;
	var table = layui.table;
	let today = new Date();
	let twoYearsAgo = new Date();
	twoYearsAgo.setFullYear(today.getFullYear() - 2);
	laydate.render({
		elem: '#startDate'
		, type: 'date'
		, format: 'yyyyMMdd'
		, value: twoYearsAgo
	});
	laydate.render({
		elem: '#endDate'
		, type: 'date'
		, format: 'yyyyMMdd'
		, value: today
	});

	tableIns = table.render({
		elem: '#listTable'
		, url: appendCtx("/stock/industry/indicators/detail")
		, even: true
		, cols: [[ //表头
			, { field: 'id', title: 'ID', align: 'center', width: 80,fixed:"left" }
			, { field: 'industry', title: '行业分类', align: 'center', width: 100,fixed:"left" }
			, { field: 'tsCode', title: 'TS代码', align: 'center', width: 100,fixed:"left" }
			, { field: 'stockName', title: '股票名称', align: 'center', width: 100,fixed:"left" }
			, { field: 'endDate', title: '报告期', align: 'center', width: 100,fixed:"left" }
			, {
				field: 'totalMv', title: '总市值', align: 'right', width: 180, templet:
					function(d) { if (d.totalMv!=-2147483648.00) { return numberFormat(d.totalMv, 2); } return '-'; }
			}
			, {
				field: 'mvWeight', title: '权重', align: 'right', width: 180, templet:
					function(d) { if (d.mvWeight!=-2147483648.00) { return numberFormat(d.mvWeight, 2); } return '-'; }
			}
			, {
				field: 'eps', title: '基本每股收益', align: 'right', width: 180, templet:
					function(d) { if (d.eps!=-2147483648.00) { return numberFormat(d.eps, 2); } return '-'; }
			}
			, {
				field: 'dtEps', title: '稀释每股收益', align: 'right', width: 180, templet:
					function(d) { if (d.dtEps!=-2147483648.00) { return numberFormat(d.dtEps, 2); } return '-'; }
			}
			, {
				field: 'totalRevenuePs', title: '每股营业总收入', align: 'right', width: 180, templet:
					function(d) { if (d.totalRevenuePs!=-2147483648.00) { return numberFormat(d.totalRevenuePs, 2); } return '-'; }
			}
			, {
				field: 'revenuePs', title: '每股营业收入', align: 'right', width: 180, templet:
					function(d) { if (d.revenuePs!=-2147483648.00) { return numberFormat(d.revenuePs, 2); } return '-'; }
			}
			, {
				field: 'capitalResePs', title: '每股资本公积', align: 'right', width: 180, templet:
					function(d) { if (d.capitalResePs!=-2147483648.00) { return numberFormat(d.capitalResePs, 2); } return '-'; }
			}
			, {
				field: 'surplusResePs', title: '每股盈余公积', align: 'right', width: 180, templet:
					function(d) { if (d.surplusResePs!=-2147483648.00) { return numberFormat(d.surplusResePs, 2); } return '-'; }
			}
			, {
				field: 'undistProfitPs', title: '每股未分配利润', align: 'right', width: 180, templet:
					function(d) { if (d.undistProfitPs!=-2147483648.00) { return numberFormat(d.undistProfitPs, 2); } return '-'; }
			}
			, {
				field: 'extraItem', title: '非经常性损益', align: 'right', width: 180, templet:
					function(d) { if (d.extraItem!=-2147483648.00) { return numberFormat(d.extraItem, 2); } return '-'; }
			}
			, {
				field: 'profitDedt', title: '扣除非经常性损益后的净利润', align: 'right', width: 260, templet:
					function(d) { if (d.profitDedt!=-2147483648.00) { return numberFormat(d.profitDedt, 2); } return '-'; }
			}
			, {
				field: 'grossMargin', title: '毛利', align: 'right', width: 180, templet:
					function(d) { if (d.grossMargin!=-2147483648.00) { return numberFormat(d.grossMargin, 2); } return '-'; }
			}
			, {
				field: 'currentRatio', title: '流动比率', align: 'right', width: 180, templet:
					function(d) { if (d.currentRatio!=-2147483648.00) { return numberFormat(d.currentRatio, 2); } return '-'; }
			}
			, {
				field: 'quickRatio', title: '速动比率', align: 'right', width: 180, templet:
					function(d) { if (d.quickRatio!=-2147483648.00) { return numberFormat(d.quickRatio, 2); } return '-'; }
			}
			, {
				field: 'cashRatio', title: '保守速动比率', align: 'right', width: 180, templet:
					function(d) { if (d.cashRatio!=-2147483648.00) { return numberFormat(d.cashRatio, 2); } return '-'; }
			}
			, {
				field: 'invturnDays', title: '存货周转天数', align: 'right', width: 180, templet:
					function(d) { if (d.invturnDays!=-2147483648.00) { return numberFormat(d.invturnDays, 2); } return '-'; }
			}
			, {
				field: 'arturnDays', title: '应收账款周转天数', align: 'right', width: 180, templet:
					function(d) { if (d.arturnDays!=-2147483648.00) { return numberFormat(d.arturnDays, 2); } return '-'; }
			}
			, {
				field: 'invTurn', title: '存货周转率', align: 'right', width: 180, templet:
					function(d) { if (d.invTurn!=-2147483648.00) { return numberFormat(d.invTurn, 2); } return '-'; }
			}
			, {
				field: 'arTurn', title: '应收账款周转率', align: 'right', width: 180, templet:
					function(d) { if (d.arTurn!=-2147483648.00) { return numberFormat(d.arTurn, 2); } return '-'; }
			}
			, {
				field: 'caTurn', title: '流动资产周转率', align: 'right', width: 180, templet:
					function(d) { if (d.caTurn!=-2147483648.00) { return numberFormat(d.caTurn, 2); } return '-'; }
			}
			, {
				field: 'faTurn', title: '固定资产周转率', align: 'right', width: 180, templet:
					function(d) { if (d.faTurn!=-2147483648.00) { return numberFormat(d.faTurn, 2); } return '-'; }
			}
			, {
				field: 'assetsTurn', title: '总资产周转率', align: 'right', width: 180, templet:
					function(d) { if (d.assetsTurn!=-2147483648.00) { return numberFormat(d.assetsTurn, 2); } return '-'; }
			}
			, {
				field: 'opIncome', title: '经营活动净收益', align: 'right', width: 180, templet:
					function(d) { if (d.opIncome!=-2147483648.00) { return numberFormat(d.opIncome, 2); } return '-'; }
			}
			, {
				field: 'valuechangeIncome', title: '价值变动净收益', align: 'right', width: 180, templet:
					function(d) { if (d.valuechangeIncome!=-2147483648.00) { return numberFormat(d.valuechangeIncome, 2); } return '-'; }
			}
			, {
				field: 'interstIncome', title: '利息费用', align: 'right', width: 180, templet:
					function(d) { if (d.interstIncome!=-2147483648.00) { return numberFormat(d.interstIncome, 2); } return '-'; }
			}
			, {
				field: 'daa', title: '折旧与摊销', align: 'right', width: 180, templet:
					function(d) { if (d.daa!=-2147483648.00) { return numberFormat(d.daa, 2); } return '-'; }
			}
			, {
				field: 'ebit', title: '息税前利润', align: 'right', width: 180, templet:
					function(d) { if (d.ebit!=-2147483648.00) { return numberFormat(d.ebit, 2); } return '-'; }
			}
			, {
				field: 'ebitda', title: '息税折旧摊销前利润', align: 'right', width: 180, templet:
					function(d) { if (d.ebitda!=-2147483648.00) { return numberFormat(d.ebitda, 2); } return '-'; }
			}
			, {
				field: 'fcff', title: '企业自由现金流量', align: 'right', width: 180, templet:
					function(d) { if (d.fcff!=-2147483648.00) { return numberFormat(d.fcff, 2); } return '-'; }
			}
			, {
				field: 'fcfe', title: '股权自由现金流量', align: 'right', width: 180, templet:
					function(d) { if (d.fcfe!=-2147483648.00) { return numberFormat(d.fcfe, 2); } return '-'; }
			}
			, {
				field: 'currentExint', title: '无息流动负债', align: 'right', width: 180, templet:
					function(d) { if (d.currentExint!=-2147483648.00) { return numberFormat(d.currentExint, 2); } return '-'; }
			}
			, {
				field: 'noncurrentExint', title: '无息非流动负债', align: 'right', width: 180, templet:
					function(d) { if (d.noncurrentExint!=-2147483648.00) { return numberFormat(d.noncurrentExint, 2); } return '-'; }
			}
			, {
				field: 'interestdebt', title: '带息债务', align: 'right', width: 180, templet:
					function(d) { if (d.interestdebt!=-2147483648.00) { return numberFormat(d.interestdebt, 2); } return '-'; }
			}
			, {
				field: 'netdebt', title: '净债务', align: 'right', width: 180, templet:
					function(d) { if (d.netdebt!=-2147483648.00) { return numberFormat(d.netdebt, 2); } return '-'; }
			}
			, {
				field: 'tangibleAsset', title: '有形资产', align: 'right', width: 180, templet:
					function(d) { if (d.tangibleAsset!=-2147483648.00) { return numberFormat(d.tangibleAsset, 2); } return '-'; }
			}
			, {
				field: 'workingCapital', title: '营运资金', align: 'right', width: 180, templet:
					function(d) { if (d.workingCapital!=-2147483648.00) { return numberFormat(d.workingCapital, 2); } return '-'; }
			}
			, {
				field: 'networkingCapital', title: '营运流动资本', align: 'right', width: 180, templet:
					function(d) { if (d.networkingCapital!=-2147483648.00) { return numberFormat(d.networkingCapital, 2); } return '-'; }
			}
			, {
				field: 'investCapital', title: '全部投入资本', align: 'right', width: 180, templet:
					function(d) { if (d.investCapital!=-2147483648.00) { return numberFormat(d.investCapital, 2); } return '-'; }
			}
			, {
				field: 'retainedEarnings', title: '留存收益', align: 'right', width: 180, templet:
					function(d) { if (d.retainedEarnings!=-2147483648.00) { return numberFormat(d.retainedEarnings, 2); } return '-'; }
			}
			, {
				field: 'diluted2Eps', title: '期末摊薄每股收益', align: 'right', width: 180, templet:
					function(d) { if (d.diluted2Eps!=-2147483648.00) { return numberFormat(d.diluted2Eps, 2); } return '-'; }
			}
			, {
				field: 'bps', title: '每股净资产', align: 'right', width: 180, templet:
					function(d) { if (d.bps!=-2147483648.00) { return numberFormat(d.bps, 2); } return '-'; }
			}
			, {
				field: 'ocfps', title: '每股经营活动产生的现金流量净额', align: 'right', width: 300, templet:
					function(d) { if (d.ocfps!=-2147483648.00) { return numberFormat(d.ocfps, 2); } return '-'; }
			}
			, {
				field: 'retainedps', title: '每股留存收益', align: 'right', width: 180, templet:
					function(d) { if (d.retainedps!=-2147483648.00) { return numberFormat(d.retainedps, 2); } return '-'; }
			}
			, {
				field: 'cfps', title: '每股现金流量净额', align: 'right', width: 180, templet:
					function(d) { if (d.cfps!=-2147483648.00) { return numberFormat(d.cfps, 2); } return '-'; }
			}
			, {
				field: 'ebitPs', title: '每股息税前利润', align: 'right', width: 180, templet:
					function(d) { if (d.ebitPs!=-2147483648.00) { return numberFormat(d.ebitPs, 2); } return '-'; }
			}
			, {
				field: 'fcffPs', title: '每股企业自由现金流量', align: 'right', width: 200, templet:
					function(d) { if (d.fcffPs!=-2147483648.00) { return numberFormat(d.fcffPs, 2); } return '-'; }
			}
			, {
				field: 'fcfePs', title: '每股股东自由现金流量', align: 'right', width: 200, templet:
					function(d) { if (d.fcfePs!=-2147483648.00) { return numberFormat(d.fcfePs, 2); } return '-'; }
			}
			, {
				field: 'netprofitMargin', title: '销售净利率', align: 'right', width: 180, templet:
					function(d) { if (d.netprofitMargin!=-2147483648.00) { return numberFormat(d.netprofitMargin, 2); } return '-'; }
			}
			, {
				field: 'grossprofitMargin', title: '销售毛利率', align: 'right', width: 180, templet:
					function(d) { if (d.grossprofitMargin!=-2147483648.00) { return numberFormat(d.grossprofitMargin, 2); } return '-'; }
			}
			, {
				field: 'cogsOfSales', title: '销售成本率', align: 'right', width: 180, templet:
					function(d) { if (d.cogsOfSales!=-2147483648.00) { return numberFormat(d.cogsOfSales, 2); } return '-'; }
			}
			, {
				field: 'expenseOfSales', title: '销售期间费用率', align: 'right', width: 180, templet:
					function(d) { if (d.expenseOfSales!=-2147483648.00) { return numberFormat(d.expenseOfSales, 2); } return '-'; }
			}
			, {
				field: 'profitToGr', title: '净利润/营业总收入', align: 'right', width: 180, templet:
					function(d) { if (d.profitToGr!=-2147483648.00) { return numberFormat(d.profitToGr, 2); } return '-'; }
			}
			, {
				field: 'saleexpToGr', title: '销售费用/营业总收入', align: 'right', width: 200, templet:
					function(d) { if (d.saleexpToGr!=-2147483648.00) { return numberFormat(d.saleexpToGr, 2); } return '-'; }
			}
			, {
				field: 'adminexpOfGr', title: '管理费用/营业总收入', align: 'right', width: 200, templet:
					function(d) { if (d.adminexpOfGr!=-2147483648.00) { return numberFormat(d.adminexpOfGr, 2); } return '-'; }
			}
			, {
				field: 'finaexpOfGr', title: '财务费用/营业总收入', align: 'right', width: 200, templet:
					function(d) { if (d.finaexpOfGr!=-2147483648.00) { return numberFormat(d.finaexpOfGr, 2); } return '-'; }
			}
			, {
				field: 'impaiTtm', title: '资产减值损失/营业总收入', align: 'right', width: 240, templet:
					function(d) { if (d.impaiTtm!=-2147483648.00) { return numberFormat(d.impaiTtm, 2); } return '-'; }
			}
			, {
				field: 'gcOfGr', title: '营业总成本/营业总收入', align: 'right', width: 220, templet:
					function(d) { if (d.gcOfGr!=-2147483648.00) { return numberFormat(d.gcOfGr, 2); } return '-'; }
			}
			, {
				field: 'opOfGr', title: '营业利润/营业总收入', align: 'right', width: 200, templet:
					function(d) { if (d.opOfGr!=-2147483648.00) { return numberFormat(d.opOfGr, 2); } return '-'; }
			}
			, {
				field: 'ebitOfGr', title: '息税前利润/营业总收入', align: 'right', width: 220, templet:
					function(d) { if (d.ebitOfGr!=-2147483648.00) { return numberFormat(d.ebitOfGr, 2); } return '-'; }
			}
			, {
				field: 'roe', title: '净资产收益率', align: 'right', width: 180, templet:
					function(d) { if (d.roe!=-2147483648.00) { return numberFormat(d.roe, 2); } return '-'; }
			}
			, {
				field: 'roeWaa', title: '加权平均净资产收益率', align: 'right', width: 200, templet:
					function(d) { if (d.roeWaa!=-2147483648.00) { return numberFormat(d.roeWaa, 2); } return '-'; }
			}
			, {
				field: 'roeDt', title: '净资产收益率(扣除非经常损益)', align: 'right', width: 300, templet:
					function(d) { if (d.roeDt!=-2147483648.00) { return numberFormat(d.roeDt, 2); } return '-'; }
			}
			, {
				field: 'roa', title: '总资产报酬率', align: 'right', width: 180, templet:
					function(d) { if (d.roa!=-2147483648.00) { return numberFormat(d.roa, 2); } return '-'; }
			}
			, {
				field: 'npta', title: '总资产净利润', align: 'right', width: 180, templet:
					function(d) { if (d.npta!=-2147483648.00) { return numberFormat(d.npta, 2); } return '-'; }
			}
			, {
				field: 'roic', title: '投入资本回报率', align: 'right', width: 180, templet:
					function(d) { if (d.roic!=-2147483648.00) { return numberFormat(d.roic, 2); } return '-'; }
			}
			, {
				field: 'roeYearly', title: '年化净资产收益率', align: 'right', width: 180, templet:
					function(d) { if (d.roeYearly!=-2147483648.00) { return numberFormat(d.roeYearly, 2); } return '-'; }
			}
			, {
				field: 'roa2Yearly', title: '年化总资产报酬率', align: 'right', width: 180, templet:
					function(d) { if (d.roa2Yearly!=-2147483648.00) { return numberFormat(d.roa2Yearly, 2); } return '-'; }
			}
			, {
				field: 'roeAvg', title: '平均净资产收益率(增发条件)', align: 'right', width: 280, templet:
					function(d) { if (d.roeAvg!=-2147483648.00) { return numberFormat(d.roeAvg, 2); } return '-'; }
			}
			, {
				field: 'opincomeOfEbt', title: '经营活动净收益/利润总额', align: 'right', width: 240, templet:
					function(d) { if (d.opincomeOfEbt!=-2147483648.00) { return numberFormat(d.opincomeOfEbt, 2); } return '-'; }
			}
			, {
				field: 'investincomeOfEbt', title: '价值变动净收益/利润总额', align: 'right', width: 240, templet:
					function(d) { if (d.investincomeOfEbt!=-2147483648.00) { return numberFormat(d.investincomeOfEbt, 2); } return '-'; }
			}
			, {
				field: 'nOpProfitOfEbt', title: '营业外收支净额/利润总额', align: 'right', width: 240, templet:
					function(d) { if (d.nOpProfitOfEbt!=-2147483648.00) { return numberFormat(d.nOpProfitOfEbt, 2); } return '-'; }
			}
			, {
				field: 'taxToEbt', title: '所得税/利润总额', align: 'right', width: 180, templet:
					function(d) { if (d.taxToEbt!=-2147483648.00) { return numberFormat(d.taxToEbt, 2); } return '-'; }
			}
			, {
				field: 'dtprofitToProfit', title: '扣除非经常损益后的净利润/净利润', align: 'right', width: 320, templet:
					function(d) { if (d.dtprofitToProfit!=-2147483648.00) { return numberFormat(d.dtprofitToProfit, 2); } return '-'; }
			}
			, {
				field: 'salescashToOr', title: '销售商品提供劳务收到的现金/营业收入', align: 'right', width: 320, templet:
					function(d) { if (d.salescashToOr!=-2147483648.00) { return numberFormat(d.salescashToOr, 2); } return '-'; }
			}
			, {
				field: 'ocfToOr', title: '经营活动产生的现金流量净额/营业收入', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToOr!=-2147483648.00) { return numberFormat(d.ocfToOr, 2); } return '-'; }
			}
			, {
				field: 'ocfToOpincome', title: '经营活动产生的现金流量净额/经营活动净收益', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToOpincome!=-2147483648.00) { return numberFormat(d.ocfToOpincome, 2); } return '-'; }
			}
			, {
				field: 'capitalizedToDa', title: '资本支出/折旧和摊销', align: 'right', width: 200, templet:
					function(d) { if (d.capitalizedToDa!=-2147483648.00) { return numberFormat(d.capitalizedToDa, 2); } return '-'; }
			}
			, {
				field: 'debtToAssets', title: '资产负债率', align: 'right', width: 180, templet:
					function(d) { if (d.debtToAssets!=-2147483648.00) { return numberFormat(d.debtToAssets, 2); } return '-'; }
			}
			, {
				field: 'assetsToEqt', title: '权益乘数', align: 'right', width: 180, templet:
					function(d) { if (d.assetsToEqt!=-2147483648.00) { return numberFormat(d.assetsToEqt, 2); } return '-'; }
			}
			, {
				field: 'dpAssetsToEqt', title: '权益乘数(杜邦分析)', align: 'right', width: 200, templet:
					function(d) { if (d.dpAssetsToEqt!=-2147483648.00) { return numberFormat(d.dpAssetsToEqt, 2); } return '-'; }
			}
			, {
				field: 'caToAssets', title: '流动资产/总资产', align: 'right', width: 180, templet:
					function(d) { if (d.caToAssets!=-2147483648.00) { return numberFormat(d.caToAssets, 2); } return '-'; }
			}
			, {
				field: 'ncaToAssets', title: '非流动资产/总资产', align: 'right', width: 180, templet:
					function(d) { if (d.ncaToAssets!=-2147483648.00) { return numberFormat(d.ncaToAssets, 2); } return '-'; }
			}
			, {
				field: 'tbassetsToTotalassets', title: '有形资产/总资产', align: 'right', width: 180, templet:
					function(d) { if (d.tbassetsToTotalassets!=-2147483648.00) { return numberFormat(d.tbassetsToTotalassets, 2); } return '-'; }
			}
			, {
				field: 'intToTalcap', title: '带息债务/全部投入资本', align: 'right', width: 220, templet:
					function(d) { if (d.intToTalcap!=-2147483648.00) { return numberFormat(d.intToTalcap, 2); } return '-'; }
			}
			, {
				field: 'eqtToTalcapital', title: '归属于母公司的股东权益/全部投入资本', align: 'right', width: 320, templet:
					function(d) { if (d.eqtToTalcapital!=-2147483648.00) { return numberFormat(d.eqtToTalcapital, 2); } return '-'; }
			}
			, {
				field: 'currentdebtToDebt', title: '流动负债/负债合计', align: 'right', width: 180, templet:
					function(d) { if (d.currentdebtToDebt!=-2147483648.00) { return numberFormat(d.currentdebtToDebt, 2); } return '-'; }
			}
			, {
				field: 'longdebToDebt', title: '非流动负债/负债合计', align: 'right', width: 200, templet:
					function(d) { if (d.longdebToDebt!=-2147483648.00) { return numberFormat(d.longdebToDebt, 2); } return '-'; }
			}
			, {
				field: 'ocfToShortdebt', title: '经营活动产生的现金流量净额/流动负债', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToShortdebt!=-2147483648.00) { return numberFormat(d.ocfToShortdebt, 2); } return '-'; }
			}
			, {
				field: 'debtToEqt', title: '产权比率', align: 'right', width: 180, templet:
					function(d) { if (d.debtToEqt!=-2147483648.00) { return numberFormat(d.debtToEqt, 2); } return '-'; }
			}
			, {
				field: 'eqtToDebt', title: '归属于母公司的股东权益/负债合计', align: 'right', width: 320, templet:
					function(d) { if (d.eqtToDebt!=-2147483648.00) { return numberFormat(d.eqtToDebt, 2); } return '-'; }
			}
			, {
				field: 'eqtToInterestdebt', title: '归属于母公司的股东权益/带息债务', align: 'right', width: 320, templet:
					function(d) { if (d.eqtToInterestdebt!=-2147483648.00) { return numberFormat(d.eqtToInterestdebt, 2); } return '-'; }
			}
			, {
				field: 'tangibleassetToDebt', title: '有形资产/负债合计', align: 'right', width: 180, templet:
					function(d) { if (d.tangibleassetToDebt!=-2147483648.00) { return numberFormat(d.tangibleassetToDebt, 2); } return '-'; }
			}
			, {
				field: 'tangassetToIntdebt', title: '有形资产/带息债务', align: 'right', width: 180, templet:
					function(d) { if (d.tangassetToIntdebt!=-2147483648.00) { return numberFormat(d.tangassetToIntdebt, 2); } return '-'; }
			}
			, {
				field: 'tangibleassetToNetdebt', title: '有形资产/净债务', align: 'right', width: 180, templet:
					function(d) { if (d.tangibleassetToNetdebt!=-2147483648.00) { return numberFormat(d.tangibleassetToNetdebt, 2); } return '-'; }
			}
			, {
				field: 'ocfToDebt', title: '经营活动产生的现金流量净额/负债合计', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToDebt!=-2147483648.00) { return numberFormat(d.ocfToDebt, 2); } return '-'; }
			}
			, {
				field: 'ocfToInterestdebt', title: '经营活动产生的现金流量净额/带息债务', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToInterestdebt!=-2147483648.00) { return numberFormat(d.ocfToInterestdebt, 2); } return '-'; }
			}
			, {
				field: 'ocfToNetdebt', title: '经营活动产生的现金流量净额/净债务', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToNetdebt!=-2147483648.00) { return numberFormat(d.ocfToNetdebt, 2); } return '-'; }
			}
			, {
				field: 'ebitToInterest', title: '已获利息倍数(EBIT/利息费用)', align: 'right', width: 320, templet:
					function(d) { if (d.ebitToInterest!=-2147483648.00) { return numberFormat(d.ebitToInterest, 2); } return '-'; }
			}
			, {
				field: 'longdebtToWorkingcapital', title: '长期债务与营运资金比率', align: 'right', width: 220, templet:
					function(d) { if (d.longdebtToWorkingcapital!=-2147483648.00) { return numberFormat(d.longdebtToWorkingcapital, 2); } return '-'; }
			}
			, {
				field: 'ebitdaToDebt', title: '息税折旧摊销前利润/负债合计', align: 'right', width: 280, templet:
					function(d) { if (d.ebitdaToDebt!=-2147483648.00) { return numberFormat(d.ebitdaToDebt, 2); } return '-'; }
			}
			, {
				field: 'turnDays', title: '营业周期', align: 'right', width: 180, templet:
					function(d) { if (d.turnDays!=-2147483648.00) { return numberFormat(d.turnDays, 2); } return '-'; }
			}
			, {
				field: 'roaYearly', title: '年化总资产净利率', align: 'right', width: 180, templet:
					function(d) { if (d.roaYearly!=-2147483648.00) { return numberFormat(d.roaYearly, 2); } return '-'; }
			}
			, {
				field: 'roaDp', title: '总资产净利率(杜邦分析)', align: 'right', width: 240, templet:
					function(d) { if (d.roaDp!=-2147483648.00) { return numberFormat(d.roaDp, 2); } return '-'; }
			}
			, {
				field: 'fixedAssets', title: '固定资产合计', align: 'right', width: 180, templet:
					function(d) { if (d.fixedAssets!=-2147483648.00) { return numberFormat(d.fixedAssets, 2); } return '-'; }
			}
			, {
				field: 'profitPrefinExp', title: '扣除财务费用前营业利润', align: 'right', width: 220, templet:
					function(d) { if (d.profitPrefinExp!=-2147483648.00) { return numberFormat(d.profitPrefinExp, 2); } return '-'; }
			}
			, {
				field: 'nonOpProfit', title: '非营业利润', align: 'right', width: 180, templet:
					function(d) { if (d.nonOpProfit!=-2147483648.00) { return numberFormat(d.nonOpProfit, 2); } return '-'; }
			}
			, {
				field: 'opToEbt', title: '营业利润／利润总额', align: 'right', width: 180, templet:
					function(d) { if (d.opToEbt!=-2147483648.00) { return numberFormat(d.opToEbt, 2); } return '-'; }
			}
			, {
				field: 'nopToEbt', title: '非营业利润／利润总额', align: 'right', width: 200, templet:
					function(d) { if (d.nopToEbt!=-2147483648.00) { return numberFormat(d.nopToEbt, 2); } return '-'; }
			}
			, {
				field: 'ocfToProfit', title: '经营活动产生的现金流量净额／营业利润', align: 'right', width: 320, templet:
					function(d) { if (d.ocfToProfit!=-2147483648.00) { return numberFormat(d.ocfToProfit, 2); } return '-'; }
			}
			, {
				field: 'cashToLiqdebt', title: '货币资金／流动负债', align: 'right', width: 180, templet:
					function(d) { if (d.cashToLiqdebt!=-2147483648.00) { return numberFormat(d.cashToLiqdebt, 2); } return '-'; }
			}
			, {
				field: 'cashToLiqdebtWithinterest', title: '货币资金／带息流动负债', align: 'right', width: 220, templet:
					function(d) { if (d.cashToLiqdebtWithinterest!=-2147483648.00) { return numberFormat(d.cashToLiqdebtWithinterest, 2); } return '-'; }
			}
			, {
				field: 'opToLiqdebt', title: '营业利润／流动负债', align: 'right', width: 180, templet:
					function(d) { if (d.opToLiqdebt!=-2147483648.00) { return numberFormat(d.opToLiqdebt, 2); } return '-'; }
			}
			, {
				field: 'opToDebt', title: '营业利润／负债合计', align: 'right', width: 180, templet:
					function(d) { if (d.opToDebt!=-2147483648.00) { return numberFormat(d.opToDebt, 2); } return '-'; }
			}
			, {
				field: 'roicYearly', title: '年化投入资本回报率', align: 'right', width: 180, templet:
					function(d) { if (d.roicYearly!=-2147483648.00) { return numberFormat(d.roicYearly, 2); } return '-'; }
			}
			, {
				field: 'totalFaTrun', title: '固定资产合计周转率', align: 'right', width: 180, templet:
					function(d) { if (d.totalFaTrun!=-2147483648.00) { return numberFormat(d.totalFaTrun, 2); } return '-'; }
			}
			, {
				field: 'profitToOp', title: '利润总额／营业收入', align: 'right', width: 180, templet:
					function(d) { if (d.profitToOp!=-2147483648.00) { return numberFormat(d.profitToOp, 2); } return '-'; }
			}
			, {
				field: 'qOpincome', title: '经营活动单季度净收益', align: 'right', width: 200, templet:
					function(d) { if (d.qOpincome!=-2147483648.00) { return numberFormat(d.qOpincome, 2); } return '-'; }
			}
			, {
				field: 'qInvestincome', title: '价值变动单季度净收益', align: 'right', width: 200, templet:
					function(d) { if (d.qInvestincome!=-2147483648.00) { return numberFormat(d.qInvestincome, 2); } return '-'; }
			}
			, {
				field: 'qDtprofit', title: '扣除非经常损益后的单季度净利润', align: 'right', width: 300, templet:
					function(d) { if (d.qDtprofit!=-2147483648.00) { return numberFormat(d.qDtprofit, 2); } return '-'; }
			}
			, {
				field: 'qEps', title: '每股收益(单季度)', align: 'right', width: 180, templet:
					function(d) { if (d.qEps!=-2147483648.00) { return numberFormat(d.qEps, 2); } return '-'; }
			}
			, {
				field: 'qNetprofitMargin', title: '销售净利率(单季度)', align: 'right', width: 200, templet:
					function(d) { if (d.qNetprofitMargin!=-2147483648.00) { return numberFormat(d.qNetprofitMargin, 2); } return '-'; }
			}
			, {
				field: 'qGsprofitMargin', title: '销售毛利率(单季度)', align: 'right', width: 200, templet:
					function(d) { if (d.qGsprofitMargin!=-2147483648.00) { return numberFormat(d.qGsprofitMargin, 2); } return '-'; }
			}
			, {
				field: 'qExpToSales', title: '销售期间费用率(单季度)', align: 'right', width: 240, templet:
					function(d) { if (d.qExpToSales!=-2147483648.00) { return numberFormat(d.qExpToSales, 2); } return '-'; }
			}
			, {
				field: 'qProfitToGr', title: '净利润／营业总收入(单季度)', align: 'right', width: 280, templet:
					function(d) { if (d.qProfitToGr!=-2147483648.00) { return numberFormat(d.qProfitToGr, 2); } return '-'; }
			}
			, {
				field: 'qSaleexpToGr', title: '销售费用／营业总收入 (单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qSaleexpToGr!=-2147483648.00) { return numberFormat(d.qSaleexpToGr, 2); } return '-'; }
			}
			, {
				field: 'qAdminexpToGr', title: '管理费用／营业总收入 (单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qAdminexpToGr!=-2147483648.00) { return numberFormat(d.qAdminexpToGr, 2); } return '-'; }
			}
			, {
				field: 'qFinaexpToGr', title: '财务费用／营业总收入 (单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qFinaexpToGr!=-2147483648.00) { return numberFormat(d.qFinaexpToGr, 2); } return '-'; }
			}
			, {
				field: 'qImpairToGrTtm', title: '资产减值损失／营业总收入(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qImpairToGrTtm!=-2147483648.00) { return numberFormat(d.qImpairToGrTtm, 2); } return '-'; }
			}
			, {
				field: 'qGcToGr', title: '营业总成本／营业总收入 (单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qGcToGr!=-2147483648.00) { return numberFormat(d.qGcToGr, 2); } return '-'; }
			}
			, {
				field: 'qOpToGr', title: '营业利润／营业总收入(单季度)', align: 'right', width: 300, templet:
					function(d) { if (d.qOpToGr!=-2147483648.00) { return numberFormat(d.qOpToGr, 2); } return '-'; }
			}
			, {
				field: 'qRoe', title: '净资产收益率(单季度)', align: 'right', width: 220, templet:
					function(d) { if (d.qRoe!=-2147483648.00) { return numberFormat(d.qRoe, 2); } return '-'; }
			}
			, {
				field: 'qDtRoe', title: '净资产单季度收益率(扣除非经常损益)', align: 'right', width: 320, templet:
					function(d) { if (d.qDtRoe!=-2147483648.00) { return numberFormat(d.qDtRoe, 2); } return '-'; }
			}
			, {
				field: 'qNpta', title: '总资产净利润(单季度)', align: 'right', width: 220, templet:
					function(d) { if (d.qNpta!=-2147483648.00) { return numberFormat(d.qNpta, 2); } return '-'; }
			}
			, {
				field: 'qOpincomeToEbt', title: '经营活动净收益／利润总额(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qOpincomeToEbt!=-2147483648.00) { return numberFormat(d.qOpincomeToEbt, 2); } return '-'; }
			}
			, {
				field: 'qInvestincomeToEbt', title: '价值变动净收益／利润总额(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qInvestincomeToEbt!=-2147483648.00) { return numberFormat(d.qInvestincomeToEbt, 2); } return '-'; }
			}
			, {
				field: 'qDtprofitToProfit', title: '扣除非经常损益后的净利润／净利润(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qDtprofitToProfit!=-2147483648.00) { return numberFormat(d.qDtprofitToProfit, 2); } return '-'; }
			}
			, {
				field: 'qSalescashToOr', title: '销售商品提供劳务收到的现金／营业收入(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qSalescashToOr!=-2147483648.00) { return numberFormat(d.qSalescashToOr, 2); } return '-'; }
			}
			, {
				field: 'qOcfToSales', title: '经营活动产生的现金流量净额／营业收入(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qOcfToSales!=-2147483648.00) { return numberFormat(d.qOcfToSales, 2); } return '-'; }
			}
			, {
				field: 'qOcfToOr', title: '经营活动产生的现金流量净额／经营活动净收益(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qOcfToOr!=-2147483648.00) { return numberFormat(d.qOcfToOr, 2); } return '-'; }
			}
			, {
				field: 'basicEpsYoy', title: '基本每股收益同比增长率(%)', align: 'right', width: 280, templet:
					function(d) { if (d.basicEpsYoy!=-2147483648.00) { return numberFormat(d.basicEpsYoy, 2); } return '-'; }
			}
			, {
				field: 'dtEpsYoy', title: '稀释每股收益同比增长率(%)', align: 'right', width: 280, templet:
					function(d) { if (d.dtEpsYoy!=-2147483648.00) { return numberFormat(d.dtEpsYoy, 2); } return '-'; }
			}
			, {
				field: 'cfpsYoy', title: '每股经营活动产生的现金流量净额同比增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.cfpsYoy!=-2147483648.00) { return numberFormat(d.cfpsYoy, 2); } return '-'; }
			}
			, {
				field: 'opYoy', title: '营业利润同比增长率(%)', align: 'right', width: 240, templet:
					function(d) { if (d.opYoy!=-2147483648.00) { return numberFormat(d.opYoy, 2); } return '-'; }
			}
			, {
				field: 'ebtYoy', title: '利润总额同比增长率(%)', align: 'right', width: 240, templet:
					function(d) { if (d.ebtYoy!=-2147483648.00) { return numberFormat(d.ebtYoy, 2); } return '-'; }
			}
			, {
				field: 'netprofitYoy', title: '归属母公司股东的净利润同比增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.netprofitYoy!=-2147483648.00) { return numberFormat(d.netprofitYoy, 2); } return '-'; }
			}
			, {
				field: 'dtNetprofitYoy', title: '归属母公司股东的净利润-扣除非经常损益同比增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.dtNetprofitYoy!=-2147483648.00) { return numberFormat(d.dtNetprofitYoy, 2); } return '-'; }
			}
			, {
				field: 'ocfYoy', title: '经营活动产生的现金流量净额同比增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.ocfYoy!=-2147483648.00) { return numberFormat(d.ocfYoy, 2); } return '-'; }
			}
			, {
				field: 'roeYoy', title: '净资产收益率(摊薄)同比增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.roeYoy!=-2147483648.00) { return numberFormat(d.roeYoy, 2); } return '-'; }
			}
			, {
				field: 'bpsYoy', title: '每股净资产相对年初增长率(%)', align: 'right', width: 300, templet:
					function(d) { if (d.bpsYoy!=-2147483648.00) { return numberFormat(d.bpsYoy, 2); } return '-'; }
			}
			, {
				field: 'assetsYoy', title: '资产总计相对年初增长率(%)', align: 'right', width: 280, templet:
					function(d) { if (d.assetsYoy!=-2147483648.00) { return numberFormat(d.assetsYoy, 2); } return '-'; }
			}
			, {
				field: 'eqtYoy', title: '归属母公司的股东权益相对年初增长率(%)', align: 'right', width: 320, templet:
					function(d) { if (d.eqtYoy!=-2147483648.00) { return numberFormat(d.eqtYoy, 2); } return '-'; }
			}
			, {
				field: 'trYoy', title: '营业总收入同比增长率(%)', align: 'right', width: 260, templet:
					function(d) { if (d.trYoy!=-2147483648.00) { return numberFormat(d.trYoy, 2); } return '-'; }
			}
			, {
				field: 'orYoy', title: '营业收入同比增长率(%)', align: 'right', width: 240, templet:
					function(d) { if (d.orYoy!=-2147483648.00) { return numberFormat(d.orYoy, 2); } return '-'; }
			}
			, {
				field: 'qGrYoy', title: '营业总收入同比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qGrYoy!=-2147483648.00) { return numberFormat(d.qGrYoy, 2); } return '-'; }
			}
			, {
				field: 'qGrQoq', title: '营业总收入环比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qGrQoq!=-2147483648.00) { return numberFormat(d.qGrQoq, 2); } return '-'; }
			}
			, {
				field: 'qSalesYoy', title: '营业收入同比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qSalesYoy!=-2147483648.00) { return numberFormat(d.qSalesYoy, 2); } return '-'; }
			}
			, {
				field: 'qSalesQoq', title: '营业收入环比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qSalesQoq!=-2147483648.00) { return numberFormat(d.qSalesQoq, 2); } return '-'; }
			}
			, {
				field: 'qOpYoy', title: '营业利润同比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qOpYoy!=-2147483648.00) { return numberFormat(d.qOpYoy, 2); } return '-'; }
			}
			, {
				field: 'qOpQoq', title: '营业利润环比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qOpQoq!=-2147483648.00) { return numberFormat(d.qOpQoq, 2); } return '-'; }
			}
			, {
				field: 'qProfitYoy', title: '净利润同比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qProfitYoy!=-2147483648.00) { return numberFormat(d.qProfitYoy, 2); } return '-'; }
			}
			, {
				field: 'qProfitQoq', title: '净利润环比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qProfitQoq!=-2147483648.00) { return numberFormat(d.qProfitQoq, 2); } return '-'; }
			}
			, {
				field: 'qNetprofitYoy', title: '归属母公司股东的净利润同比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qNetprofitYoy!=-2147483648.00) { return numberFormat(d.qNetprofitYoy, 2); } return '-'; }
			}
			, {
				field: 'qNetprofitQoq', title: '归属母公司股东的净利润环比增长率(%)(单季度)', align: 'right', width: 320, templet:
					function(d) { if (d.qNetprofitQoq!=-2147483648.00) { return numberFormat(d.qNetprofitQoq, 2); } return '-'; }
			}
			, {
				field: 'equityYoy', title: '净资产同比增长率', align: 'right', width: 180, templet:
					function(d) { if (d.equityYoy!=-2147483648.00) { return numberFormat(d.equityYoy, 2); } return '-'; }
			}
			, {
				field: 'rdExp', title: '研发费用', align: 'right', width: 180, templet:
					function(d) { if (d.rdExp!=-2147483648.00) { return numberFormat(d.rdExp, 2); } return '-'; }
			}
		]]
		, page: false
		, parseData: function(res) { //res 即为原始返回的数据
			return {
				"code": res.code, //解析接口状态
				"msg": res.msg, //解析提示文本
				"data": res.data //解析数据列表
				, "attr": res.attr
			};
		},
		done: function(res, curr, count) {
		}
	});
	form.on('submit(search)', function(formData) {
		tableIns.reload({
			where: formData.field,
			page: {
				curr: 1
			}
		});
		return false;
	});
});

function refreshTableData() {
	tableIns.reload({});
}